package com.wxp.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.wxp.entity.Permission;

@Repository
public interface  PermissionDao extends JpaRepository<Permission, String>,JpaSpecificationExecutor<Permission> {
    
	
	
	@Modifying
	@Query("delete from Permission  where roleCode = ?1")
	int deleteByRoleCode(String roleCode);

}
